package com.qf.feigns;

import com.qf.conf.FeignConfig;
import com.qf.pojo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "qf-order",configuration = FeignConfig.class,fallbackFactory = OrderApiFallbackFactory.class)
public interface OrderApi {

    @GetMapping("/order/{id}")
    R findByUid(@PathVariable("id") Integer id) throws InterruptedException;
}
